package com.jxinternet.platform.services.protocol;

/**
 * 接口相关协议代码
 *
 * Created by gold-jx on 2017/7/7.
 */
public class BaseProtocol {

    /**
     * 区域模块代码
     * area
     */
    public static final int Area_Login = 1001; // 登陆

    public static final int Area_Logout = 1002; // 登出

    public static final int Area_User_Register = 2001; // 注册

    public static final int Area_User_LoadWealth = 2002; // 初始化财富

    public static final int Area_Wizard_GetServerTime = 3001; // 获取服务时间

    public static final int Area_Battle = 4001; // 作战请求

    public static final int Area_Heart = 5001; // 心跳机制




    /**
     * SocketModel指令代码
     */
    public static final int SocketModel_Invalid_Success_Code = 9999;
    public static final String SocketModel_Invalid_Success_Res = "成功";

    public static final int SocketModel_Invalid_System_Error_Code = 9000;
    public static final String SocketModel_Invalid_System_Error_Res = "系统未知错误";

    public static final int SocketModel_Invalid_Interface_Not_Exist_Code = 9001;
    public static final String SocketModel_Invalid_Interface_Not_Exist_Res = "接口不存在";

    public static final int SocketModel_Invalid_Token_Erreor_Code = 9002;
    public static final String SocketModel_Invalid_Token_Erreor_Res = "TOKEN不正确";

    public static final int SocketModel_Invalid_Decoder_Error_Code = 9003;
    public static final String SocketModel_Invalid_Decoder_Error_Res = "解码失败";

    public static final int SocketModel_Invalid_YanQian_Error_Code = 9004;
    public static final String SocketModel_Invalid_YanQian_Error_Res = "验签失败";

    public static final int SocketModel_Invalid_CanShu_Error_Code = 9005;
    public static final String SocketModel_Invalid_CanShu_Error_Res = "参数错误";

    public static final int SocketModel_Invalid_DeviceId_Error_Code = 9006;
    public static final String SocketModel_Invalid_DeviceId_Error_Res = "设备编号为空";

    public static final int SocketModel_Invalid_Device_Not_Exist_Code = 9007;
    public static final String SocketModel_Invalid_Device_Not_Exist_Res = "设备编号不存在";

    public static final int SocketModel_Invalid_MessageId_Not_Exist_Code = 9008;
    public static final String SocketModel_Invalid_MessageId__Not_Exist_Res = "消息编号不为空";

    public static final int SocketModel_Invalid_Data_isNull_Code = 9010;
    public static final String SocketModel_Invalid_Data_isNull_Res = "请求信息不能为空";

    public static final int SocketModel_Invalid_User_isNull_Code = 9011;
    public static final String SocketModel_Invalid_User_isNull_Res = "用户名不为空";

    public static final int SocketModel_Invalid_Token_isNull_Code = 9012;
    public static final String SocketModel_Invalid_Token_isNull_Res = "token不为空";

    /**
     * 通用
     */
    public static final int Data_Succeed_Code = 999;//注册成功
    public static final String Data_Succeed_Des = "成功";//注册成功

    /**
     * 登录
     */
    public static final int Login_InvalidMessage_Code = 100;
    public static final String Login_InvalidMessage_Des = "无效信息";

    public static final int Login_InvalidUsername_Code = 101;
    public static final String Login_InvalidUsername_Des = "无效用户名";

    public static final int Login_InvalidPassword_Code = 102;//密码错误
    public static final String Login_Invalidassword_Des = "login_step3:密码错误";

    public static final int Login_InvalidPasswordisNull_Code = 103;//密码为空
    public static final String Login_InvalidasswordisNull_Des = "login_step1:密码为空";

    public static final int Login_InvalidUsernameisNull_Code = 104;//用户名为空
    public static final String Login_InvalidUsernameisNull_Des = "login_step1:用户名为空";

    public static final int Login_InvalidUsernotNormal_Code = 105;//用户状态异常
    public static final String Login_InvalidUsernotNormal_Des = "login_step2:用户状态异常";

    public static final int Login_InvalidUsernotExist_Code = 106;//用户不存在
    public static final String Login_InvalidUsernotExist_Des = "login_step2:用户不存在";

    public static final int Login_InvalidExcption_Code = 107;
    public static final String Login_InvalidExcption_Des = "login:用户登录异常";

    public static final int Login_Invalid_Wealth_Not_Exist_Code = 108;
    public static final String Login_Invalid_Wealth_Not_Exist_Res = "login_step4:用户登录初始化财富不存在";

    public static final int Login_Invalid_Wealth_Exception_Code = 109;
    public static final String Login_Invalid_Wealth_Exception_Res = "login_step4:用户登录初始化财富异常";

    public static final int Logout_InvalidExcption_Code = 110;
    public static final String Logout_InvalidExcption_Des = "用户登出异常";

    public static final int Login_Request_Is_Null_Code = 111;
    public static final String Login_Request_Is_Null_Res = "login_step1:用户登录请求参数为空";

    public static final int Login_Step01_Exception_Code = 112;
    public static final String Login_Step01_Exception_Res = "login_step1:验证请求异常";

    public static final int Login_Step02_Exception_Code = 113;
    public static final String Login_Step02_Exception_Res = "login_step2:验证用户异常";

    public static final int Login_Step03_Exception_Code = 114;
    public static final String Login_Step03_Exception_Res = "login_step3:验证密码异常";

    public static final int Login_Step04_Exception_Code = 115;
    public static final String Login_Step04_Exception_Res = "login_step4:验证财富异常";

    public static final int Login_Step05_Exception_Code = 116;
    public static final String Login_Step05_Exception_Res = "login_step5:创建token异常";

    public static final int Login_Step06_Exception_Code = 117;
    public static final String Login_Step06_Exception_Res = "login_step6:记录日志异常";

    /**
     * 用户
     */

    public static final int User_InvalidExcption_Code = 201;
    public static final String User_InvalidExcption_Des = "register:用户注册异常";

    public static final int User_Invalid_Request_Code = 202;
    public static final String User_Invalid_Request_Des = "register_step1:用户注册请求不能为空";

    public static final int User_Invalid_UserName_NotNull_Code = 203;
    public static final String User_Invalid_UserName_NotNull_Des = "register_step1:用户名不能为空";

    public static final int User_Invalid_Password_NoNull_Code = 204;
    public static final String User_Invalid_assword_NotNull_Des = "register_step1:密码不能为空";

    public static final int User_Invalid_NickName_NoNull_Code = 205;
    public static final String User_Invalid_NickName_NotNull_Des = "register_step1:昵称不能为空";

    public static final int User_Invalid_User_isExist_Code = 206;
    public static final String User_Invalid_User_isExist_Res = "register_step2:用户已存在";

    public static final int User_Invalid_Add_User_Code = 207;
    public static final String User_Invalid_Add_User_Res = "register_step4:添加用户失败";

    public static final int User_Invalid_Wealth_isExist_Code = 208;
    public static final String User_Invalid_Wealth_isExist_Res = "register_step5:财富已存在";

    public static final int User_Invalid_Wealth_Init_Code = 209;
    public static final String User_Invalid_Wealth_Init_Res = "register_step7:添加财富失败";

    public static final int User_Invalid_User_Not_isExist_Code = 210;
    public static final String User_Invalid_User_Not_isExist_Res = "login_step2:用户不存在";

    public static final int Register_Step01_Exception_Code = 211;
    public static final String Register_Step01_Exception_Res = "login_step1:验证请求异常";

    public static final int Register_Step02_Exception_Code = 212;
    public static final String Register_Step02_Exception_Res = "login_step2:验证用户异常";

    public static final int Register_Step03_Exception_Code = 213;
    public static final String Register_Step03_Exception_Res = "login_step3:生成用户对象异常";

    public static final int Register_Step04_Exception_Code = 214;
    public static final String Register_Step04_Exception_Res = "login_step4:添加用户异常";

    public static final int Register_Step05_Exception_Code = 215;
    public static final String Register_Step05_Exception_Res = "login_step5:验证财富异常";

    public static final int Register_Step06_Exception_Code = 216;
    public static final String Register_Step06_Exception_Res = "login_step6:生成财富对象异常";

    public static final int Register_Step07_Exception_Code = 217;
    public static final String Register_Step07_Exception_Res = "login_step7:添加财富异常";

    public static final int Register_Step08_Exception_Code = 218;
    public static final String Register_Step08_Exception_Res = "login_step8:生成token异常";

    public static final int Register_Step09_Exception_Code = 219;
    public static final String Register_Step09_Exception_Res = "login_step9:记录日志异常";

    public static final int UserInfo_Init_Invalid_UserName_NotNull_Code = 250;
    public static final String UserInfo_Init_UserName_NotNull_Des = "userInfo_step1:用户名不能为空";

    public static final int UserInfo_Init_Step01_Exception_Code = 251;
    public static final String UserInfo_Init_Step01_Exception_Res = "userInfo_step1:验证请求异常";

    public static final int UserInfo_Init_Step02_Exception_Code = 252;
    public static final String UserInfo_Init_Step02_Exception_Res = "userInfo_step2:获取用户异常";

    public static final int UserInfo_Init_Step03_Exception_Code = 253;
    public static final String UserInfo_Init_Step03_Exception_Res = "userInfo_step3:获取财富异常";

    public static final int UserInfo_Init_Step04_Exception_Code = 254;
    public static final String UserInfo_Init_Step04_Exception_Res = "userInfo_step4:获取鱼类异常";

    public static final int UserInfo_Init_Step05_Exception_Code = 255;
    public static final String UserInfo_Init_Step05_Exception_Res = "userInfo_step5:加载缓存异常";

    public static final int UserInfo_Init_Step06_Exception_Code = 256;
    public static final String UserInfo_Init_Step06_Exception_Res = "userInfo_step6:记录日志异常";

    public static final int UserInfo_Init_Invalid_Wealth_Init_Code = 257;
    public static final String UserInfo_Init_Invalid_Wealth_Init_Res = "userInfo_step3:获取财富失败";

    public static final int UserInfo_Init_Invalid_Fish_Init_Code = 258;
    public static final String UserInfo_Init_Invalid_Fish_Init_Res = "userInfo_step4:获取鱼类列表失败";

    public static final int UserInfo_Init_InvalidExcption_Code = 259;
    public static final String UserInfo_Init_InvalidExcption_Des = "userInfo:初始化用户信息异常";






    /**
     * 作战
     */
    public static final int Battle_Invalid_UserName_IsNull_Code = 401;
    public static final String Battle_Invalid_UserName_IsNull_Res = "battle_step1:用户名为空";

    public static final int Battle_Invalid_GoldCount_Exception_Code = 402;
    public static final String Battle_Invalid_GoldCount_Exception_Res = "battle_step1:请求积分错误";

    public static final int Battle_Invalid_User_Not_Exist_Code = 403;
    public static final String Battle_Invalid_User_Not_Exist_Res = "battle_step2:用户不存在";

    public static final int Battle_Invalid_User_Exception_Code = 404;
    public static final String Battle_Invalid_User_Exception_Res = "battle_step2:用户异常";

    public static final int Battle_Invalid_Wealth_Not_Exist_Code = 405;
    public static final String Battle_Invalid_Wealth_Not_Exist_Res = "battle_step3:财富不存在";

    public static final int Battle_Invalid_Wealth_Exception_Code = 406;
    public static final String Battle_Invalid_Wealth_Exception_Res = "battle_step3:财富异常";

    public static final int Battle_Invalid_Fish_Not_Exist_Code = 407;
    public static final String Battle_Invalid_Fish_Not_Exist_Res = "battle_step4:鱼类不存在";

    public static final int Battle_Invalid_Fish_Exception_Code = 408;
    public static final String Battle_Invalid_Fish_Exception_Res = "battle_step4:鱼类异常";

    public static final int Battle_Invalid_Wealth_Point_BuGou_Code = 409;
    public static final String Battle_Invalid_Wealth_Point_BuGou_Res = "battle_step3:个人积分不足";

    public static final int Battle_Invalid_Wealth_Point_Update_Code = 410;
    public static final String Battle_Invalid_Wealth_Point_Update_Res = "更新积分失败";

    public static final int Battle_Invalid_Exception_Code = 411;
    public static final String Battle_Invalid_Exception_Res = "作战异常";

    public static final int Battle_Step01_Exception_Code = 412;
    public static final String Battle_Step01_Exception_Res = "battle_step1:验证作战请求异常";

    public static final int Battle_Step02_Exception_Code = 413;
    public static final String Battle_Step02_Exception_Res = "battle_step2:获取用户异常";

    public static final int Battle_Step03_Exception_Code = 414;
    public static final String Battle_Step03_Exception_Res = "battle_step3:获取财富异常";

    public static final int Battle_Step04_Exception_Code = 415;
    public static final String Battle_Step04_Exception_Res = "battle_step4:获取鱼异常";

    public static final int Battle_Step05_Exception_Code = 416;
    public static final String Battle_Step05_Exception_Res = "battle_step5:判断击中异常";

    public static final int Battle_Step06_Exception_Code = 417;
    public static final String Battle_Step06_Exception_Res = "battle_step6:返回积分异常";

    public static final int Battle_Step07_Exception_Code = 418;
    public static final String Battle_Step07_Exception_Res = "battle_step7:更新积分异常";


}
